package com.chj.comp.service.demo1.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;

@Getter
@Setter
@EqualsAndHashCode
@AllArgsConstructor
@HeadRowHeight(55)  // 表格头行高
@ContentRowHeight(20)  //内容行高
@ColumnWidth(10)  //列宽
public class ExcelSchedulerJobDownloadDTO {

    @ExcelProperty("主键id")
    private String jobId;

    @ExcelProperty("任务名称")
    private String jobName;

    @ExcelProperty("年")
    private String year;

    @ExcelProperty("月")
    private String month;

    @ExcelProperty("日")
    private String day;

    @ExcelProperty("时")
    private String hour;

    @ExcelProperty("分")
    private String minute;

    @ExcelProperty("秒")
    private String second;

    @ExcelProperty("任务开关 0-关闭 1-开启")
    @ColumnWidth(15)  //单列宽
    private String isFlag;

    @ExcelIgnore
    private LocalDateTime createTime;

    @ExcelProperty("邮件通知 0-禁用 1-开启 2-关闭")
    @ColumnWidth(15)
    private String emailNotice;

    @ExcelProperty("邮件通知描述")
    @ColumnWidth(15)
    private String emailNoticeDesc;

    @ExcelProperty("短信通知 0-禁用 1-开启 2-关闭")
    @ColumnWidth(15)
    private String messageNotice;

    @ExcelProperty("短信通知描述通知描述")
    @ColumnWidth(15)
    private String messageNoticeDesc;

}
